package com.yfp.operation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.MachineNetWarnDO;
import com.yfp.operation.domain.dto.WarnParameterDTO;
import com.yfp.operation.domain.vo.MachineErrorVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface MachineNetWarnMapper extends BaseMapper<MachineNetWarnDO> {


    List<MachineErrorVO> getMachinNetWarn(WarnParameterDTO warnParameterDTO);

    List<MachineNetWarnDO> getAll();

    List<MachineNetWarnDO> getLimitOne();

    void insertAll(@Param("machineNetWarnDOS") ArrayList<MachineNetWarnDO> machineNetWarnDOS);

    List<MachineErrorVO> getMachinWarn(WarnParameterDTO warnParameterDTO);
}
